<!-- 新增分区 -->
<template>
  <div>
    <el-dialog title="重点关注" :visible.sync="dialogShow" width="65%" :close-on-click-modal="false" :close-on-press-escape="false">
      <form-common :filed-list="verifyList" ref="verifyForm"></form-common>
      <div slot="footer" class="dialog-footer">
        <el-button @click="dialogShow = false" class="el-button-reset">取 消</el-button>
        <el-button type="primary" @click="confirmFn">确 认</el-button>
      </div>
    </el-dialog>
  </div>
</template>
<script>
  import formCommon from '@g/components/form/formCommon.vue';
  import { verifyList } from './abolishContract.js';
  import { apiVerifyPlanSave } from '../../../api/contract';
  import { requestTips, askDialog } from '../../../assets/util';

  export default {
    props: {
      contractType: {
        type: String,
        default: '',
      },
      attentionTxt: {
        type: String,
        default: '',
      },
      contractInfo: {
        type: Object,
        default: ()=>{
            return {}
        },
      },
    },
    data() {
      return {
        dialogShow: false,
        verifyList: verifyList,
      };
    },

    mounted() {},

    methods: {
      async confirmFn() {
        let userInfo = JSON.parse(localStorage.getItem('userInfo'));
        let model = this.$refs.verifyForm.validateForm();
        if (!model) return;
        model.bizKey = this.contractInfo.contractKey
        model.bizCode = this.contractInfo.contractKey | null
        model.focusInstruction = this.attentionTxt
        let res = await apiVerifyPlanSave(model);
        if (res.success) {
            this.dialogShow = false
            this.$emit('verifySave')
        } else {
          this.$message.error(res.message);
        }
      },
    },

    components: { formCommon },
  };
</script>
<style lang="scss" scoped></style>
